package org.example.Tomcat;

import java.net.Socket;

/**
 * @description:
 * @author: farprt
 * @create: 2023-02-13 16:35
 **/
public class Request extends AbstractHttpServletRequest {

    private String method;
    private StringBuffer url;
    private String protocol;
    private Socket socket;

    public Request() {
    }

    public Request(String method, StringBuffer url, String protocol, Socket socket) {
        this.method = method;
        this.url = url;
        this.protocol = protocol;
        this.socket = socket;
    }

    public void setSocket(Socket socket) {
        this.socket = socket;
    }

    public Socket getSocket() {
        return socket;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public StringBuffer getRequestURL() {
        return url;
    }

    public void setUrl(StringBuffer url) {
        this.url = url;
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }
}